<?php get_header();?>
<!--#include file="header.asp"-->
<div id="content" class="layout">
	
	<?php get_sidebar();?>

  
  <div id="right">

    <div class="right_title">
      <h2>新闻中心</h2>
    </div>
    <div class="right_body">
     
        
		<?php if ($posts_perpage) { ?>
						<?php $postsperpage = $posts_perpage; ?>
                    <?php } else { ?>
                        <?php $postsperpage = 10; ?>
                    <?php } ?>
        	 
        	  <?php
						$categoryID=$cat;
						$wp_query = new WP_Query('cat=' . $categoryID. 'orderby=date&order=desc&posts_per_page='.$postsperpage.'&paged='.$paged); ?>
        	 


		<?php while (have_posts()) : the_post(); ?>
        	<ul class="news">
          
	
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a><span class="data"><?php the_date_xml(); ?></span></li>

            </ul>
            <?php endwhile; ?>

         
                    
        <?php pagenav($query_string); ?>
    </div>
    
    

    
  </div>
  <div class="clear"></div>
</div>
<div id="link" class="layout">
  <ul>
   <li>友情链接</li>
   <li><?php wp_list_bookmarks('title_li=&categorize=0&orderby=rand&limit=24'); ?></li>
  </ul>
</div>
<?php get_footer();?>